import 'package:flutter/material.dart';
import 'route/delegate.dart';
import 'route/information_parser.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: '~Flutter Bilibili~',
      theme: ThemeData(
        fontFamily: ('NotoSamsSC'),
        dividerColor: Colors.transparent,
        accentColor: Colors.black54,
        appBarTheme: AppBarTheme(
            color: Colors.white,
            titleTextStyle: TextStyle(color: Colors.black)),
      ),
      routerDelegate: BiliRouterDelegate(),
      routeInformationParser: BiliRouteParser(),
    );
  }
}